﻿import unittest
from selenium import webdriver
from Framework.DataClasses.CUser import *
from Framework.PageClasses.CpLogin import CpLogin
from Framework.PageClasses.CpDefault import CpDefault
from Tests._tcBase import _tcBase

class Login(unittest.TestCase, _tcBase ):
    a = "12"
    def setUp(self):
        _tcBase.setUp(self) 
            
    def tearDown(self):
        _tcBase.tearDown(self)

    def test_Login(self, a=a):
        print a
        pageLogin = CpLogin(self.driver)
        pageLogin.open(self.driver, pageLogin.url)
        pageLogin.loginAs( user1 ).LogOut()

if __name__ == '__main__':
    unittest.main()